/**    
* @Title: EnumConditions.java
* @Package: org.vdalf.gsgz.enums
* @author vDalf 2020-09-26 11:09:31 上午11:09:31
* @Copyright © 2020 vDalf Block-Chain Foundation (In Preparation Non-Governmental Organization) All rights reserved.
*/
package org.vdalf.gsgz.enums;

/**    
* @Title: EnumConditions.java
* @Package: org.vdalf.gsgz.enums
* @Description: 
* @author vDalf 2020-09-26 11:09:31 上午11:09:31
*/
public enum EnumConditions {

	大于("gt", "大于"),
	小于("lt", "小于"),
	等于("eq", "等于"),
	;

	private String code;
	private String message;

	private EnumConditions(String code, String message) {
		this.code = code;
		this.message = message;
	}

	public static EnumConditions getByCode(String c) {
		return java.util.stream.Stream.of(EnumConditions.values()).filter(t -> t.code.equals(c)).findAny().orElse(null);
	}

	public String getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}
}
